<?php

namespace App\Http\Middleware;

use Closure;

class VerifyDeviceToken
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        // dd($request->input('termid'));
        // if ($request->input('termid') === null) {
        //     return response()->json(['status' => '404', 'data' => 'device-token do exit']);
        // }
       // if ($request->header('device-token')===null) {
         //  return response()->json(['status' => '404', 'data' => 'device-token do exit']);
       // }
        return $next($request);
    }
}
